package com.pruebas.entity;

import javax.persistence.Column;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord;
import org.springframework.roo.addon.tostring.RooToString;

@RooJavaBean
@RooToString
@RooJpaActiveRecord
public class QuestionOptionModel {

    @NotNull
    @Column(unique = true)
    private String optionNumber;

    @NotNull
    @Size(max = 2000)
    private String optionDescription;

    @NotNull
    @ManyToOne(fetch = FetchType.EAGER)
    private QuestionModel questionModel;
}
